package com.white.loggerserver

import android.app.Application
import com.white.loggerserver.core.LogServerManager
import com.white.loggerserver.room.MyRoomDb
import kotlin.properties.Delegates

/**
 * Created by ytf on 2020/06/03.
 * Description:
 */
class App : Application() {

    companion object{
        var instance: App by Delegates.notNull()        //实例用它
        var mAppContext: Application by Delegates.notNull()     //applicationContext用它
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
        mAppContext = this
        MyRoomDb.init(this)
    }

}